home *** CD-ROM | disk | FTP | other *** search
- on MouseInInfo
- if not rollOver(10) then
- beep()
- dontPassEvent()
- end if
- end
-
- on InitInfoDialog
- global gTotalInfoPage, gNowInfoPage
- repeat with e = 1 to 50
- if the number of cast ("Info.PAGE-" & e) = -1 then
- exit repeat
- end if
- end repeat
- set gTotalInfoPage to e - 1
- set gNowInfoPage to 1
- end
-
- on UpdateInfoBox
- global gTotalInfoPage, gNowInfoPage
- set the castNum of sprite 18 to 29
- set the castNum of sprite 19 to 30
- set the castNum of sprite 17 to cast ("Info.PAGE-" & gNowInfoPage)
- if gTotalInfoPage <> 1 then
- if gTotalInfoPage = gNowInfoPage then
- set the locV of sprite 18 to 229
- set the locV of sprite 19 to 1000
- else
- if gNowInfoPage = 1 then
- set the locV of sprite 18 to 1000
- set the locV of sprite 19 to 229
- else
- set the locV of sprite 18 to 229
- set the locV of sprite 19 to 229
- end if
- end if
- end if
- updateStage()
- end
-
- on ClickPRandNE
- global gTotalInfoPage, gNowInfoPage
- puppetSound("Click")
- if the clickOn = 18 then
- set the castNum of sprite 18 to 31
- updateStage()
- set gNowInfoPage to gNowInfoPage - 1
- else
- set the castNum of sprite 19 to 32
- updateStage()
- set gNowInfoPage to gNowInfoPage + 1
- end if
- repeat while the stillDown
- end repeat
- UpdateInfoBox()
- puppetSound(0)
- end
-
- on CreateTableObj theFName
- global gTableL, gNowMode
- set theFObj to fileio(mnew, "read", the pathName & theFName)
- if objectp(theFObj) then
- set theContents to theFObj(mreadfile)
- theFObj(mdispose)
- if listp(gTableL) then
- set gTableL to EMPTY
- end if
- set gTableL to list()
- set theNum to the number of lines in theContents
- repeat with e = 1 to theNum
- addAt(gTableL, e, line e of theContents)
- end repeat
- set gNowMode to theFName
- else
- alert("not found file." & RETURN & the pathName & theFName)
- end if
- end
-